<h1><?php echo $title;?></h1>
<ul id="structure_managment">
    <li class="name">Typ prace
        <ul class="sub_list">
            <li><a href="<?php echo base_url();?>/structure_managment/add_category/worktype">Pridat novy typ...</a></li>
            <?php foreach ($work_types as $row) {
                echo '<li><a href="'.base_url().'/structure_managment/edit_category/worktype/' . $row->id . '">' . $row->name . '</a></li>';
            }?>
        </ul>
    </li>
    <li class="name">Predmety
        <ul class="sub_list">
            <li><a href="<?php echo base_url();?>/structure_managment/add_category/classroomsubject">Pridat novy predmet...</a></li>
            <?php foreach ($classroom_subjects as $row) {
                echo '<li><a href="'.base_url().'/structure_managment/edit_category/classroomsubject/' . $row->id . '">' . $row->name . '</a></li>';
            }?>
        </ul>
    </li>
    <li class="name">OS
        <ul class="sub_list">
            <li><a href="<?php echo base_url();?>/structure_managment/add_category/programos">Pridat novy OS...</a></li>
            <?php foreach ($program_oses as $row) {
                echo '<li><a href="'.base_url().'/structure_managment/edit_category/programos/' . $row->id . '">' . $row->name . '</a></li>';
            }?>
        </ul>
    </li>
    <li class="name">Jazyky
        <ul class="sub_list">
            <li><a href="<?php echo base_url();?>/structure_managment/add_category/language">Pridat novy jazyk...</a></li>
            <?php foreach ($languages as $row) {
                echo '<li><a href="'.base_url().'/structure_managment/edit_category/language/' . $row->id . '">' . $row->name . '</a></li>';
            }?>
        </ul>
    </li>
    <li class="name">Rocniky
        <ul class="sub_list">
            <li><a href="<?php echo base_url();?>/structure_managment/add_category/studylevel">Pridat novy rocnik...</a></li>
            <?php foreach ($study_levels as $row) {
                echo '<li><a href="'.base_url().'/structure_managment/edit_category/studylevel/' . $row->id . '">' . $row->name . '</a></li>';
            }?>
        </ul>
    </li>
</ul>